//
//  PPHomeAlbumListView.h
//  pickpic
//
//  Created by Jinxiao on 9/6/16.
//  Copyright © 2016 MicroDream. All rights reserved.
//

#import <UIKit/UIKit.h>

@class PPAlbumModel;
@class PPHomeAlbumListView;

@protocol PPHomeAlbumListViewDelegate <NSObject>

- (void)listViewDidTriggerToggling:(PPHomeAlbumListView *)listView;

- (void)listViewDidSelectCreateAlbum:(PPHomeAlbumListView *)listView;

- (void)listView:(PPHomeAlbumListView *)listView didSelectAlbum:(PPAlbumModel *)album;

- (void)listView:(PPHomeAlbumListView *)listView didSelectDeleteAlbum:(PPAlbumModel *)album;
- (void)listView:(PPHomeAlbumListView *)listView didSelectShareAlbum:(PPAlbumModel *)album;
- (void)listView:(PPHomeAlbumListView *)listView didSelectEditAlbum:(PPAlbumModel *)album;
- (void)listView:(PPHomeAlbumListView *)listView didSelectEbookAlbum:(PPAlbumModel *)album;

- (void)listView:(PPHomeAlbumListView *)listView listAlbumData:(NSArray *)albums;

- (void)listViewWithCreateAlbum;
@end

@interface PPHomeAlbumListView : UIView

@property (readwrite, nonatomic, weak) id<PPHomeAlbumListViewDelegate> delegate;

- (BOOL)hideUtilitiesIfNeeded;

- (void)dismissWithDuration:(NSTimeInterval)duration animated:(BOOL)animated completion:(void (^)(void))completion;

- (void)triggerDismiss;

- (void)reset;

@end
